# Maintainer: Alexey Pavlov <alexpux@gmail.com>

pkgname=setconf
pkgver=0.7.6
pkgrel=1
pkgdesc='Utility to easily change settings in configuration files'
arch=('any')
url='https://setconf.roboticoverlords.org/'
license=('GPL2')
depends=('python2')
source=("https://setconf.roboticoverlords.org/$pkgname-$pkgver.tar.xz")
sha256sums=('98bd51861f0141508a20a81fc325204e9500f3b7305bc518f62bf5af91db8486')

prepare() {
  sed -i 's:usr/bin/python:usr/bin/python2:' "$pkgname-$pkgver/$pkgname.py"
}

package() {
  cd "$pkgname-$pkgver"

  install -Dm755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
  install -Dm644 "$pkgname.1.gz" "$pkgdir/usr/share/man/man1/$pkgname.1.gz"
}
